#ifndef __LOGGER_H__
#define __LOGGER_H__

namespace SPlayerServer
{
    enum class LogLevel
    {
        Debug = 1,
        Information = 2,
        Warning = 3,
        Error = 4
    };
    ref class Logger
    {
    public:
        static LogLevel currentLevel;
        static void init(LogLevel level);
        static void log(LogLevel level, System::String^ format, ... array<System::Object^>^ args);
    private:
        static void writeLogText(System::String ^text);
        static System::Action<System::String ^> ^serverLogger;
    };
}

#endif // __LOGGER_H__